/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author Ekaterina
 */

@Entity
@Table (name = "perevody", catalog = "otdelkadrov", schema = "")
public class Perevody implements Serializable {
    
    @Column(name = "datep")
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
private Date datep;
    
    @Column(name = "name")
private String name;
    
    @Column(name = "dolzhnost_name")
private String dolzhnost_name;
    
    @Column(name = "dolzhnot_kod")
private int dolzhnot_kod;
    
    @Column(name = "oklad")
private String oklad;
    
    @Column(name = "prikaz")
private String prikaz;
    
    @Id
@GeneratedValue
@Column (name="id")
private Integer id = null;
    
    @ManyToOne
    @JoinColumn(name = "worker",referencedColumnName = "id")
    private Worker worker;

    public Date getDatep() {
        return datep;
    }

    public String getName() {
        return name;
    }

    public String getDolzhnost_name() {
        return dolzhnost_name;
    }

    public int getDolzhnot_kod() {
        return dolzhnot_kod;
    }

    public String getOklad() {
        return oklad;
    }

    public String getPrikaz() {
        return prikaz;
    }

    public Integer getId() {
        return id;
    }

    public Worker getWorker() {
        return worker;
    }

    public void setDatep(Date datep) {
        this.datep = datep;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDolzhnost_name(String dolzhnost_name) {
        this.dolzhnost_name = dolzhnost_name;
    }

    public void setDolzhnot_kod(int dolzhnot_kod) {
        this.dolzhnot_kod = dolzhnot_kod;
    }

    public void setOklad(String oklad) {
        this.oklad = oklad;
    }

    public void setPrikaz(String prikaz) {
        this.prikaz = prikaz;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setWorker(Worker worker) {
        this.worker = worker;
    }
    
    
}
